package com.woniuxy.woniufp.common.model;

public class TestIntern {
    public static void main(String[] args) {
        String s1 = "今天吃" + "炒饭";
        String s2 = new String("今天吃") + new String("炒饭");
        String s3 = new String("今天吃") + "炒饭";
        System.out.println(s1.intern() == s1);
        System.out.println(s2 == s2.intern());
        System.out.println(s3 == s3.intern());
    }
}
